<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" layout:decorate="~{layout.html}" th:with="currentPage=#{label.signWithJAdES}">
	<body>		
		<div layout:fragment="content">
		
			<div th:replace="~{fragment/disclaimer-mock-tsp :: mock-tsp-warn}"></div>

            <form method="post" enctype="multipart/form-data" th:action="@{/sign-with-jades}" th:object="${signatureJAdESForm}">

                <input type="hidden" id="process" value="SIGNATURE" />

                <div th:replace="~{fragment/fields :: field-documents-to-sign}"></div>

                <div th:replace="~{fragment/fields :: field-jws-serialization-type}"></div>

                <div th:replace="~{fragment/fields :: field-jades-signature-packaging}"></div>

                <div th:replace="~{fragment/fields :: field-sigd-mechanism}"></div>

                <div th:replace="~{fragment/fields :: field-base64url-payload}"></div>

                <div th:replace="~{fragment/fields :: field-signature-level}"></div>

                <div th:replace="~{fragment/fields :: field-base64url-etsiU}"></div>

                <div th:replace="~{fragment/fields :: field-digest-algo}"></div>

                <div th:replace="~{fragment/fields :: field-sign-expired}"></div>
                
                <div th:replace="~{fragment/fields :: field-content-timestamp}"></div>

                <div th:replace="~{fragment/nexu :: nexu-alert}"></div>

                <div class="form-group row">
                    <div class="offset-sm-3 col-sm-9">
                        <button type="submit" class="btn btn-primary" id="submit-button" th:text="#{label.submit}" disabled="disabled"></button>
                        <button type="reset" class="btn btn-secondary" th:text="#{label.clear}"></button>
                    </div>
                </div>

            </form>
		</div>
		<div layout:fragment="scripts">
			<script type="text/javascript" th:src="@{/scripts/jsSigDMechanism.js}"></script>
			<script type="text/javascript" th:src="@{/scripts/jsSignatureLevelJAdES.js}"></script>
            <script type="text/javascript" th:src="@{/js/nexu-deploy.js}"></script>
            <script type="text/javascript">
				$('[data-toggle="tooltip"]').tooltip();
            </script>
		</div>
	</body>
</html>